import React from "react";
import "./style.scss";
const List: any = ({ children }) => {
  return <div className="list">{children}</div>;
};

List.ListItem = ({ productType, id, price, url, date, type, onClick }) => {
  return (
    <dl className="list-item" onClick={onClick}>
      <dt>
        <img src={url} alt="" />
      </dt>
      <dd>
        <h3>{productType}</h3>
        <p>
          {type}-{price}万
        </p>
        <p>{date}</p>
      </dd>
    </dl>
  );
};

export default List;
